<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<tiles:insertDefinition name="defaultTemplate">
    <tiles:putAttribute name="content">
        <h2 class="page-header">My profile</h2>
        <form class="user-info">
            <label class="user-info-field">
                <span class="user-info-label">
                    User name
                </span>
                <input class="user-info-input" value="admin">
            </label>
            <label class="user-info-field">
                <span class="user-info-label">
                    E-mail
                </span>
                <input class="user-info-input" value="admin@librry.net">
            </label>
            <button class="user-info-change-password">Change password</button>
            <button class="user-info-submit" type="submit">Save profile info</button>
        </form>
    </tiles:putAttribute>
    <tiles:insertAttribute name="popup>">
        <form class="user-password">
            <label class="user-info-field">
                <span class="user-info-label">
                    Old password
                </span>
                <input class="user-info-input" type="password">
            </label>
            <label class="user-info-field">
                <span class="user-info-label">
                    New password
                </span>
                <input class="user-info-input" type="password">
            </label>
            <label class="user-info-field">
                <span class="user-info-label">
                    Again, please
                </span>
                <input class="user-info-input" type="password">
            </label>
            <button class="user-info-submit" type="submit">Change password</button>
        </form>
    </tiles:insertAttribute>
</tiles:insertDefinition>